@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: Roboto;
    box-sizing: border-box;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

html {
    display: grid;
    justify-content: center;
    margin-left: 2rem;
    margin-right: 2rem;
    margin-bottom: 4rem;
}
body {
    margin: 0;
    min-width: 50vw;
}

header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    margin-top: 0;
    padding-top: 1rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    background: white;
    border-bottom: solid rgb(210, 210, 210) 1px;
    border-radius: 10px;
    /* NEW: sticky header */
    position: sticky;
    top: 0;
    z-index: 10000;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.header__box {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: white;
    width: 100%;
}

body {
    padding-top: 0; /* safe default */
}

@supports (position: sticky) {
    .header__box + * {
        scroll-margin-top: 90px; /* helps anchor links not hide under header */
    }
}
.header__logo {
    margin-top: 5px;
    height: 2.5rem; 
    width: auto;
    align-self: center;
    
}
header menu {
    margin: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 10001;
}
.account__link {
    display: inline-flex;
    align-items: center;
}
.account__dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.account__dropdown__toggle {
    background: transparent;
    border: none;
    padding: 0.2rem 0.4rem;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #111;
    transform: none;
}
.account__dropdown__toggle:hover {
    background: transparent;
    transform: none;
}
.account__icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #dddddd;
    padding: 4px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    object-fit: contain;
}
.account__label {
    color: black;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
}
.account__chevron {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.account__chevron svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #111;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.account__dropdown.is-open .account__chevron {
    transform: rotate(180deg);
}
.account__dropdown__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 10000;
}
.account__dropdown.is-open .account__dropdown__menu {
    display: block;
}
.account__dropdown__menu a {
    display: block;
    padding: 0.45rem 0.6rem;
    color: #111;
    text-decoration: none;
    border-radius: 6px;
}
.account__dropdown__menu a:hover {
    background: #f2f2f2;
    text-decoration: none;
}
.logout__form {
    margin: 0;
    width: 100%;
}
.logout__button {
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
    width: 100%;
}
.logout__form--mobile {
    display: none;
}
button {
    background-color: #2868a7;
    color: #fff;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin: 5px;
}
button:hover {
    background-color: #1f527d;
    transform: translateY(-1px);
}
button a {
    text-decoration: none;
    color: white;
}
button a:hover {
    text-decoration: none;
}
.button-link,
.button-link:hover {
    text-decoration: none;
}
.menu__item__log__in {
    margin: 5px 5px;
    text-decoration: none;
    font-weight: bold;
    color: black;
    font-size: 1rem;
}
.menu__item {
    text-decoration: none;
    color: black;
    margin: 5px 5px;
    font-size: 1rem;
}
header div {
    display: flex;
}
.account__menu__header__trigger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: #ffffff;
    padding: 0;
}
.account__menu__header__trigger img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
}
.hamburger-menu {
    display: none; /* only show on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: none;
}
.hamburger-menu:hover {
    background: transparent; 
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: black;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 5px;
}

/* Animate the burger into an X when active */
.hamburger-menu.active span:nth-child(1),
.hamburger-menu.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-menu.active span:nth-child(2),
.hamburger-menu.is-open span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3),
.hamburger-menu.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
a {
    color: #2868a7;
    text-decoration: none;
}
a:hover {

    text-decoration: underline;
}
footer {
    background: rgb(57, 57, 57);
    border-radius: 10px;
    color: white;
    padding: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
footer,
footer p,
footer span,
footer a {
    color: white;
}
footer img {
    height: 2.5rem; 
    width: auto;
}
.footer__text{
 display: flex;
 align-items: top;
}
.footer__text div{
    margin: 1.5rem 3rem;
}
.footer__text a{
 text-decoration: underline;
 color: white;
}
.footer__title {
    font-weight: bold;
    font-size: 1rem;
}

@media (max-width: 930px) {
    html {
        display: block;
        margin: 0;
        padding: 0 15px;
    }
    body {
        min-width: 0;
        width: 100%;
        overflow-x: hidden;
    }
    .header__box {
        width: 100%;
    }
    header {
        position: sticky;
        width: 100%;
        padding-right: 10px;
        padding-left: 10px;
    }
    header menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 1.25rem 1.25rem;
        background: white;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
        z-index: 10001;
    }
    header menu.is-open {
        display: flex;
    }
    .hamburger-menu {
        display: block;
        align-self: center;
    }
    .account__menu__header__trigger {
        display: inline-flex;
        align-self: center;
    }
    .account__chevron {
        display: none;
    }
    .account__dropdown__menu {
        display: none;
    }
    .logout__form--mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .logout__form--mobile .logout__button {
        width: auto;
    }
}

@media (max-width: 600px) {
    html, body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    html {
        padding: 0 15px;
    }
    body.menu-open {
        overflow: hidden;
    }
    header {
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 1rem;
    }
    header menu {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .header__logo,
    footer img {
    max-width: min(250px, 60vw);
    height: auto;
    }
    .hamburger-menu {
        display: block;
    }
    footer {
        padding: 2rem;
        margin: 0.5rem auto 3rem;
        width: calc(100% - 1rem);
    }
    .footer__text {
        flex-direction: column;
        align-items: left;
        margin-left: 1rem;
    }
    .footer__text div {
        margin: 0.5rem 0;
    }
}
@media (max-width: 340px) {
    .header__logo,
     footer img {
        height: 1.4rem;
    }
}
